package com.woniu.common.entity;

import java.io.Serializable;

/**
 * role
 * @author 
 */
public class RoleWithBLOBs extends Role implements Serializable {
    private String rca;

    private String rdesc;

    private static final long serialVersionUID = 1L;

    public String getRca() {
        return rca;
    }

    public void setRca(String rca) {
        this.rca = rca;
    }

    public String getRdesc() {
        return rdesc;
    }

    public void setRdesc(String rdesc) {
        this.rdesc = rdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RoleWithBLOBs other = (RoleWithBLOBs) that;
        return (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getRname() == null ? other.getRname() == null : this.getRname().equals(other.getRname()))
            && (this.getPsids() == null ? other.getPsids() == null : this.getPsids().equals(other.getPsids()))
            && (this.getRca() == null ? other.getRca() == null : this.getRca().equals(other.getRca()))
            && (this.getRdesc() == null ? other.getRdesc() == null : this.getRdesc().equals(other.getRdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getRname() == null) ? 0 : getRname().hashCode());
        result = prime * result + ((getPsids() == null) ? 0 : getPsids().hashCode());
        result = prime * result + ((getRca() == null) ? 0 : getRca().hashCode());
        result = prime * result + ((getRdesc() == null) ? 0 : getRdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rca=").append(rca);
        sb.append(", rdesc=").append(rdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}